<template>
  <div class="container">
    <text class="big-title">示例</text>
    <div class="content">
      <text>默认文本</text>
      <text class="ex-text" style="font-weight: bold;">粗体文本</text>
      <text class="ex-text" style="font-weight: bold; font-size: 60px;">粗体加大文本</text>
      <text class="ex-text" style="color: red;">改变颜色</text>
      <text class="ex-text" style="font-style: italic;">斜体文本</text>
    </div>
    <text class="big-title">文档</text>
    <div class="button" @click="showDoc"><text class="btn-text">点击查看文档</text></div>
  </div>
</template>

<style scoped>
.container {
  padding: 10px;
}
.content {
  border-width: 2px;
  border-color: black;
  padding: 10px;
}
.ex-text {
  margin-top: 8px;
  margin-bottom: 4px;
}
.big-title {
  color: black;
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 20px;
}
.jump-btn {
  border-radius: 10px;
  border-color: #6699FF;
  border-width: 1.8px;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-bottom: 100px;
}
.jump-btn:active {
  background-color: #EFEFEF;
}
.jump-btn-text {
  color: #6699FF;
  font-size: 35px;
}
.button {
  height: 60px;
  justify-content: center;
  opacity: 1.0;
}
.button:active {
  opacity: 0.6;
}
.btn-text {
  font-size: 30px;
  color: blue;
}
</style>

<script>
  import utils from '../utils.js';
  let navigator = weex.requireModule('navigator');
  export default {
    methods: {
      showDoc() {
        navigator.push({
          url: utils.getDocDetailUrl(weex.config.bundleUrl),
          animated: true
        });
      }
    }
  }
</script>
